﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000645 RID: 1605
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetArchiveDataScRsp : IMessage<GetArchiveDataScRsp>, IMessage, IEquatable<GetArchiveDataScRsp>, IDeepCloneable<GetArchiveDataScRsp>, IBufferMessage
	{
		// Token: 0x170014C0 RID: 5312
		// (get) Token: 0x06004871 RID: 18545 RVA: 0x000C7621 File Offset: 0x000C5821
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetArchiveDataScRsp> Parser
		{
			get
			{
				return GetArchiveDataScRsp._parser;
			}
		}

		// Token: 0x170014C1 RID: 5313
		// (get) Token: 0x06004872 RID: 18546 RVA: 0x000C7628 File Offset: 0x000C5828
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetArchiveDataScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170014C2 RID: 5314
		// (get) Token: 0x06004873 RID: 18547 RVA: 0x000C763A File Offset: 0x000C583A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetArchiveDataScRsp.Descriptor;
			}
		}

		// Token: 0x06004874 RID: 18548 RVA: 0x000C7641 File Offset: 0x000C5841
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetArchiveDataScRsp()
		{
		}

		// Token: 0x06004875 RID: 18549 RVA: 0x000C764C File Offset: 0x000C584C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetArchiveDataScRsp(GetArchiveDataScRsp other) : this()
		{
			this.archiveData_ = ((other.archiveData_ != null) ? other.archiveData_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06004876 RID: 18550 RVA: 0x000C7698 File Offset: 0x000C5898
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetArchiveDataScRsp Clone()
		{
			return new GetArchiveDataScRsp(this);
		}

		// Token: 0x170014C3 RID: 5315
		// (get) Token: 0x06004877 RID: 18551 RVA: 0x000C76A0 File Offset: 0x000C58A0
		// (set) Token: 0x06004878 RID: 18552 RVA: 0x000C76A8 File Offset: 0x000C58A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ArchiveData ArchiveData
		{
			get
			{
				return this.archiveData_;
			}
			set
			{
				this.archiveData_ = value;
			}
		}

		// Token: 0x170014C4 RID: 5316
		// (get) Token: 0x06004879 RID: 18553 RVA: 0x000C76B1 File Offset: 0x000C58B1
		// (set) Token: 0x0600487A RID: 18554 RVA: 0x000C76B9 File Offset: 0x000C58B9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600487B RID: 18555 RVA: 0x000C76C2 File Offset: 0x000C58C2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetArchiveDataScRsp);
		}

		// Token: 0x0600487C RID: 18556 RVA: 0x000C76D0 File Offset: 0x000C58D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetArchiveDataScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.ArchiveData, other.ArchiveData) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600487D RID: 18557 RVA: 0x000C7720 File Offset: 0x000C5920
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.archiveData_ != null)
			{
				num ^= this.ArchiveData.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600487E RID: 18558 RVA: 0x000C7775 File Offset: 0x000C5975
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600487F RID: 18559 RVA: 0x000C777D File Offset: 0x000C597D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06004880 RID: 18560 RVA: 0x000C7788 File Offset: 0x000C5988
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.Retcode);
			}
			if (this.archiveData_ != null)
			{
				output.WriteRawTag(90);
				output.WriteMessage(this.ArchiveData);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06004881 RID: 18561 RVA: 0x000C77E4 File Offset: 0x000C59E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.archiveData_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.ArchiveData);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06004882 RID: 18562 RVA: 0x000C783C File Offset: 0x000C5A3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetArchiveDataScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.archiveData_ != null)
			{
				if (this.archiveData_ == null)
				{
					this.ArchiveData = new ArchiveData();
				}
				this.ArchiveData.MergeFrom(other.ArchiveData);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06004883 RID: 18563 RVA: 0x000C78A4 File Offset: 0x000C5AA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06004884 RID: 18564 RVA: 0x000C78B0 File Offset: 0x000C5AB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					if (num != 90U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.archiveData_ == null)
						{
							this.ArchiveData = new ArchiveData();
						}
						input.ReadMessage(this.ArchiveData);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04001CC6 RID: 7366
		private static readonly MessageParser<GetArchiveDataScRsp> _parser = new MessageParser<GetArchiveDataScRsp>(() => new GetArchiveDataScRsp());

		// Token: 0x04001CC7 RID: 7367
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001CC8 RID: 7368
		public const int ArchiveDataFieldNumber = 11;

		// Token: 0x04001CC9 RID: 7369
		private ArchiveData archiveData_;

		// Token: 0x04001CCA RID: 7370
		public const int RetcodeFieldNumber = 5;

		// Token: 0x04001CCB RID: 7371
		private uint retcode_;
	}
}
